<template>
    <!-- <Child :title="msg" :count=10 :flag=true></Child>
    <button @click="changeMsg">点击按钮修改值</button> -->
    <Child :items="msg" :user="infor"></Child>
    <button @click="change">点击按钮修改值</button>
    <!-- <Child :user="infor"></Child> -->
</template>
<script setup>
import { ref } from 'vue';
import Child from './Child.vue';
// import Child from './Child.vue';
// let msg = ref('你好,欢迎使用郭惠宇的页面');
// // function changeMsg(){}
// const changeMsg = () => {
//     msg.value = 'title值完成修改';
// }


let msg = ref([1,2,3,4])
const change = () =>{
    msg.value = [5,6,7,8]
}

let infor = {
    name:'郭惠宇',
    num :'2430150150',
    age:20
}
</script>
<style>
</style>